package com.rtx.edi.platform.jobextend.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rtx.edi.platform.jobextend.bean.dto.PlJobDTO;
import com.rtx.edi.platform.jobextend.bean.po.PlJob;

public interface PlJobService extends IService<PlJob> {

	/**
	 * 分页查询定时任务
	 * @param pageParam
	 * @param pljob
	 */
	void selectPlJobList(Page<PlJob> pageParam,PlJob pljob);
	
    /**
     * 新增任务
     * @param jobEntity
     */
    void add(PlJobDTO jobDto) throws Exception ;

    /**
     * 启用定时任务
     * @param jobDto
     * @throws Exception
     */
    public void activeJOb(PlJobDTO jobDto) throws Exception;
    
    /**
     * 停用定时任务
     * @param jobDto
     * @throws Exception
     */
    public void disactive(PlJobDTO jobDto) throws Exception;
    
    /**
     * 更新定时触发表达式
     */
    public void updJobCron(PlJobDTO jobDto) throws Exception;
    
    /**
     * 更新定时基础信息
     */
    public void updJobBase(PlJobDTO jobDto) throws Exception;
    
    /**
     * 删除定时任务
     */
    public void delJob(PlJobDTO jobDto) throws Exception;
    
    /**
     * 触发执行定时任务
     * @param dto
     * @throws Exception
     */
    public void execute(PlJobDTO dto) throws Exception;
}
